package org.easy.byteasr.dto;

import lombok.Data;

@Data
public class AudioFormat {

    public AudioFormat(float sampleRate, int sampleSizeInBits, int channels) {
        this.sampleRate = sampleRate;
        this.sampleSizeInBits = sampleSizeInBits;
        this.channels = channels;
    }

    /**
     * The number of samples played or recorded per second, for sounds that have this format.
     */
    protected float sampleRate;

    /**
     * The number of bits in each sample of a sound that has this format.
     */
    protected int sampleSizeInBits;


    /**
     * The number of audio channels in this format (1 for mono, 2 for stereo).
     */
    protected int channels;

}
